﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SDT.Model;
using SDT.Lib.Paging;
using SDT.Site.Properties;
namespace SDT.Site.ViewModels
{
    public class DemandSearchModels
    {
        public IList<DemandType> DemandTypes { get; set; }
        public IList<DemandCategory> Categories { get; set; }
        public IList<City> Cities { get; set; }
        public IList<DemandConvertArea> ConvertAreas { get; set; }
        public IList<DemandConvertPrice> ConvertPrices { get; set; }
        public IPagedList<Demand> Demands { get; set; }
        public Dictionary<int, string> Times { get; set; }
        public int? TimeID { get; set; }
        public string Keyword { get; set; }
        public int? AreaID { get; set; }
        public int? PriceID { get; set; }
        public int? CategoryID { get; set; }
        public int? TypeID { get; set; }
        public int? CityID { get; set; }
        public int? DistrictID { get; set; }
        public int? ProjectID { get; set; }

        public IList<District> Districts { get; set; }
        public DemandType DemandType { get; set; }
        public DemandCategory Category { get; set; }
        public City City { get; set; }
        public District District { get; set; }
        public DemandConvertArea ConvertArea { get; set; }
        public DemandConvertPrice ConvertPrice { get; set; }
        //For details page
        public string PathTitle { get; set; }

        public Dictionary<int, string> Currencies { get; set; }
        public Dictionary<int, string> UnitCosts { get; set; }
        public Dictionary<int, string> Directions { get; set; }
    }


    public class DemandListModels
    {
        public IList<Demand> Demands { get; set; }
        public Demand CurrentDemand { get; set; }
        public string Keyword { get; set; }
        public Dictionary<int, string> Currencies { get; set; }
        public Dictionary<int, string> UnitCosts { get; set; }
    }
    public class DemandDetailsModels
    {
        public Demand Demand { get; set; }
        public Dictionary<int, string> Directions { get; set; }
        public string Keyword { get; set; }
        public DemandSearchModels DemandSearch { get; set; }
    }
}
